package collector

import (
	"gitee.com/csingo/cRpc"
	"github.com/gin-gonic/gin"
)

type IncludesServiceHTTPClient struct{}

func (i *IncludesServiceHTTPClient) RpcClientName() (app string, service string) {
	return "collector", "IncludesService"
}

func (i *IncludesServiceHTTPClient) Add(ctx *gin.Context, req *IncludesServiceAddReq) (rsp *IncludesServiceAddRsp, err error) {
	rsp = &IncludesServiceAddRsp{}
	err = cRpc.Call(ctx, i, "Add", req, rsp)
	return
}

func (i *IncludesServiceHTTPClient) Del(ctx *gin.Context, req *IncludesServiceDelReq) (rsp *IncludesServiceDelRsp, err error) {
	rsp = &IncludesServiceDelRsp{}
	err = cRpc.Call(ctx, i, "Del", req, rsp)
	return
}

func (i *IncludesServiceHTTPClient) All(ctx *gin.Context, req *IncludesServiceAllReq) (rsp *IncludesServiceAllRsp, err error) {
	rsp = &IncludesServiceAllRsp{}
	err = cRpc.Call(ctx, i, "All", req, rsp)
	return
}
